package main;

import java.security.Principal;

import mistic.storage.Registro;

public class SimplePrincipal implements Principal{
    private final String name;
    private final Registro reg;

    public SimplePrincipal(String name,Registro reg) {
        this.name = name;
        this.reg = reg;
    }

    public Registro getReg() {
		return reg;
	}

	@Override
	public String getName() {
        return name;
    }

    @Override
	public String toString() {
        return getName();
    }
}
